package cn.shop.admin.entity.UniversalModule;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonProperty.Access;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author jzw
 * @since 2021-11-05 13:14
 */
@Data
public class CityVO implements Serializable {

	private static final long serialVersionUID = -7369964170553377615L;

	@JsonProperty("value")
	private Long id;

	@JsonProperty("label")
	private String name;

	@JsonProperty(access = Access.WRITE_ONLY)
	private Long pId;

	@JsonInclude(Include.NON_EMPTY)
	private List<CityVO> children;

}
